# -*- coding: utf-8 -*-
# @Time    : 2021/3/20 10:41
# @Author  : 夏思毅
# @Email   : 2739124228@qq.com
# @File    : 3-19作业.py
# @Software: PyCharm


# 猜数字
# import random
# s = random.randint(1,10)
# # print(s)
# for i in  range(3):
#     a = input("请你输入一个数字：")
#     if a.isdigit():
#         if int(a)==s :
#             print("这你都能猜对？？")
#             break
#         print("大了") if int(a)>s else print("小了")
#         if i==2:
#             print("没机会了，gun")
#             break
#         else:
#             print("再给你", 2 - i, "次机会")
#     else:print("数字你都不认识？走吧你")


# 划分等级
# a = input("灵根鉴定，请注入你的灵力值：")
# if int(a)<0:
#     print("老朽已活千年，从未见过你这般废材。灵力值竟负于0")
# else:
#     if a.isdigit():
#         if 0 <= int(a) <= 100 :
#             if 85 <= int(a) <= 100:
#                 print("天三材--雷火风")
#             elif 60 <= int(a) <= 85:
#                 print("地三材--水土木")
#             else :
#                 print("鉴定完毕，废材一个")
#         else:
#                 print("正经点，灵力值在0-100之间你都不知道吗")
#     else:
#         print("注入灵力值灵力值灵力值！！")


#输出100-500之间的质数
# for i in range(100,500):
#     for a in range(2,i):
#         if i % a == 0:
#             break
#     else:
#        print(i)


# #打印1-50以内整数的和
# a = int()
# for i in range(0,51):
#     a += i
# print(a)
